﻿@model IEnumerable<MvcBJDCWebApp.Models.Calendar>

@{
    ViewBag.Title = "Index";
}

<style type="text/css">
    #gray {
        background: #55C3B6;
        color: #fff;
    }
</style>


<div id="gray" class="table-responsive">
    <table class="table ">
        <tr>
            <th>
                <input type="checkbox" />
            </th>
            <th>
                日期
            </th>
            <th>
                主队
            </th>
            <th>
                比分
            </th>
            <th>
                客队
            </th>
        </tr>

        @foreach (var item in Model)
        {
            <tr>
                <td>
                    <input type="checkbox" />
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.EventDate, "LongDateTime")
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.HomeTeam)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.HomeScore)
                    :
                    @Html.DisplayFor(modelItem => item.AwayScore)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.AwayTeam)
                </td>
            </tr>
        }

    </table>
</div>